object scalaFunData1 {
  def main(args: Array[String]): Unit = {
    def func1=(i:Int)=>i*2
    val list=List(1,2,3,4,5).map(func1)
    println(list)
    val s="scala"
    println(s.toUpperCase)
    val func2=(word:String)=>word.toUpperCase
    val wordList=List[String]("java","scala","python")
    val result=wordList.map(func2)
    println(result)
    val exam=Array(("张三",Array(58,69,72,88)),("李四",Array(49,66,77,88)))
    exam.map(tp =>(tp._1,tp._2.map(t=>if(t>=60)1 else 0).sum)).foreach(println)
    var arr = Array(1,2,3,4,5)
    arr.filter(_ % 2 == 0 ).foreach(println)



  }

}
